<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="../dist/curve.js"></script>
</head>
<body style="background-color: #1e1d23;">
    <canvas width="600"  height="400" id="myCanvas"></canvas>

    <script>
        parent.postMessage(JSON.stringify({
            type: 'ready',
        }), '*');


        function tick(){
            if(window.stage) {
                window.stage.update()
            }
            requestAnimationFrame(tick)
        }

        tick()
    </script>
</body>
</html>